package com.wqiuqiu.gulimall.auth.vo;


import lombok.Data;
import lombok.extern.log4j.Log4j2;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class RegisterVo {
    @NotBlank(message = "用户名格式错误")
    private String userName;
    @NotBlank(message = "密码格式错误")
    @Length(min = 6, message = "密码长度最小为6")
    private String password;
    @Pattern(regexp = "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$", message = "邮箱格式错误")
    private String eamil;
    private String code;

}
